<?php
/**
 * Get the Latitude and longtitude ranges 
 * @param float number $e (lat/lng)
 * @return array ('l'=>?,'r'->?)
 */
function getLatLngRanges($e){
	//$a = round($e,4);
	$returnArr = array();
	
		$return['l'] = $e - 0.001;
		$return['r'] = $e + 0.001;
	
	return $return;
}

function formatTimer($e){
	//$a = round($e,4);
	while(strlen($e)<4){
		$e = '0'.$e;
	}
	$time = substr($e, 0,2).':'.substr($e, 2,2);

	return $time;
}

function addDIVContainer($str, $divID = 'highlight')
{
	$str = '<div id="'.$divID.'">'.$str.'</div>';
	return $str;
}

function goToDownloadOrBLockAccess($type)
{
	switch($type)
	{
		default:
		//	header('location:'.);
	}
	exit;
}